package com.along.dev.rbac.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;


/*
 *@Author: liujinyi
 *@CreateTime: 2025-07-11
 *@Description: 测试
 *@Version: 1.0
 */

public class LoadData {
    private Long id;

    /**
     * 最大负载 - 始终保留2位小数
     */
    @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern = "0.00")
    private BigDecimal maxLoadDay;

    /**
     * 平均负载率 - 始终保留2位小数
     */
    @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern = "#0.00")
    private BigDecimal avgLoadDay;

    /**
     * 年度最大负载（整数）
     */
    @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern = "0.00")
    private BigDecimal maxLoadYear;

    // 构造方法
    public LoadData() {}

    public LoadData(BigDecimal maxLoadDay, BigDecimal avgLoadDay, BigDecimal maxLoadYear) {
        this.maxLoadDay = maxLoadDay;
        this.avgLoadDay = avgLoadDay;
        this.maxLoadYear = maxLoadYear;
    }

    public BigDecimal getMaxLoadDay() {
        return maxLoadDay;
    }

    public void setMaxLoadDay(BigDecimal maxLoadDay) {
        this.maxLoadDay = maxLoadDay;
    }

    public BigDecimal getAvgLoadDay() {
        return avgLoadDay;
    }

    public void setAvgLoadDay(BigDecimal avgLoadDay) {
        this.avgLoadDay = avgLoadDay;
    }

    public BigDecimal getMaxLoadYear() {
        return maxLoadYear;
    }

    public void setMaxLoadYear(BigDecimal maxLoadYear) {
        this.maxLoadYear = maxLoadYear;
    }
}
